/**
 * 
 */
package model.world.tile;

import java.util.LinkedList;
import java.util.List;
import java.util.UUID;

import model.entity.Entity;
import model.entity.unit.Unit;
import model.inventory.item.Item;
import model.world.Chunk;

/**
 * @author Justin
 *
 */
public class FieldTile extends Tile {
	private static final int collectionRate = 1;
	private static final int[] ResourceID = {1, 2};
	private static final int InitialResources = -1;

	public FieldTile(long x, long y, Chunk parentChunk){
		super(x, y, new Tile[6], null, new LinkedList<Unit>(), ResourceType.FIELD, collectionRate, parentChunk, UUID.randomUUID());
		for(int r : ResourceID){
			resources.add(new Item(r, InitialResources));
		}
	}

	public FieldTile(long x, long y, Tile[] neighbors, Entity occupyingEntity, List<Unit> presentUnits, Chunk parentChunk, UUID GUID){
		super(x, y, neighbors, occupyingEntity, presentUnits, ResourceType.FIELD, collectionRate, parentChunk, GUID);
		for(int r : ResourceID){
			resources.add(new Item(r, InitialResources));
		}
	}

	public void tick(){
		super.tick();
	}
}
